package ${namespace}.dao;

import java.util.List;
import java.util.Map;

import ${namespace}.entity.${bclazz}Entity;
import com.solution.common.dao.BaseDao;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * ${comment}DAO接口
 * @author ${author}
 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
 */
public interface ${bclazz}Dao extends BaseDao<${clazz}> {
	
	/**
	 * 保存${comment}
	 * @param ${sclazz}Entity
	 * @return
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public long save${bclazz}(${clazz} ${sclazz}Entity);

	/**
	 * 分页查询${comment}信息
	 * @param pageParam 分页对象
	 * @param ${sclazz} 分页参数
	 * @return PageBean 分页参数及数据
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public PageBean list${bclazz}Page(PageParam pageParam, Map<String, Object> param);

	/**
	 * 更新${comment}
	 * @param ${sclazz}Entity
	 * @return
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public int update${bclazz}(${clazz} ${sclazz}Entity);


	/**
	 * 删除${comment}角色
	 * @param id
	 * @return
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public int delete${bclazz}ById(Long id);
	
	/**
	 * 根据${comment}类型获取${comment}
	 * @param param
	 * @return
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public List<${clazz}> list${bclazz}( Map<String, Object> param);
}
